package com.yk.neon.lib.util.log;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;

import java.lang.management.ManagementFactory;

public class ProcessIdConverter extends ClassicConverter {

	@Override
	public String convert(ILoggingEvent event) {	 
		return ManagementFactory.getRuntimeMXBean().getName().split("@")[0];  
	}

}
